package Chapter19.homework;

import java.io.*;

/**
 * @author 杨森
 * @date 2022年11月05日 11:08
 */
public class Homework02 {
    public static void main(String[] args) throws IOException {
        String filePath = "e:\\1.txt";
        String line = "";
        int count = 0;
        BufferedReader branch = new BufferedReader(new FileReader(filePath));
        if ((line = branch.readLine()) != null) {
            System.out.println(++count + line);
        }
        if (branch != null) {
            branch.close();
        }
    }
}
